import service from '@/utils/request'

const CommonServerApi = {
  listCommonServer:function(data){
    return service.get('commonServer/page', {params:data})
  },
  listByParam:function(data){
    return service.get('commonServer/listByParam', {params:data})
  },
  addCommonServer:function(data){
      return service.post('commonServer', data)
  },
  editCommonServer:function(data){
      return service.put('commonServer', data)
  },
  updateCommonServer:function(data){
    return service.put('commonServer/updateCommonServer', data)
  },
  deleteCommonServer:function(data){
      return service.put('commonServer/delete', data)
  },
  getCommonServerInfo(data){
    return service.get('commonServer', {params:data})
  },
  getCommonServerList(data){
    return service.get('commonServer/listIdName', {params:data})
  },
  getMultipleCommonServer(data){
    return service.get('commonServer/listServer', {params:data})
  },
  getDistributionInfo(data){
    return service.get('businessVillage/idNameMap', {params:data})
  },
  setDistribution(data){
    return service.put("commonServer/distribution",data)
  },
  uploadServer(data){
    return service.post("commonServer/uploadServer",data)
  }
}

export default CommonServerApi